﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LookupFrm.aspx.cs" Inherits="BizElements.Web.UI.LookupFrm" %>
<%@ Register TagPrefix="biz" Namespace="BizElements.Web" Assembly="BizElements.Web" %>
<%@ Register Src="~/Common/FormFooter.ascx" TagName="FormFooter" TagPrefix="uc2" %>
<%@ Register Src="~/Common/FormHeader.ascx" TagName="FormHeader" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Page-Enter" content="BlendTrans(Duration=.5)" />
    <meta http-equiv="Page-Exit" content="BlendTrans(Duration=.5)" />
    <title></title>
    <link href="/Styles/Main.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript" src="SearchFrm.js" />
    <script type="text/javascript">
        function EnableAllCommands() {
            // Don't enable all commands if the async request has already been processed.
            var atlasManager = Sys.WebForms.PageRequestManager.getInstance();
            if (!atlasManager.get_isInAsyncPostBack())
                return;

            <%=JsEnableAllCommands%>
        }
    </script>
</head>
<body class="body-background" style="background-color: White;" oncontextmenu="return false;" onkeydown="if (event.keyCode==13 || event.witch==13) document.getElementById('uiFilterSearch').click();">
    <form id="form1" runat="server">
    <ajax:ToolkitScriptManager ID="ScriptManager1" runat="server" CombineScripts="False">
    </ajax:ToolkitScriptManager>    
    <div class="padding">
        <table class="BizTable">
            <tr>
                <td>
                    <div class="FormHeader" id="__TopOfTheForm">
                        <div class="HeaderInner">
                            <h3>
                                <a runat="server" id="uiFilterHeader" visible="false" href="#" class="Button SearchForm left" onclick="SwitchFilterVisibility();" ><asp:Label ID="uiHeaderCaption" runat="server" meta:resourcekey="uiHeaderCaption"></asp:Label></a> 
                                <asp:Label ID="uiCaptionLbl" runat="server" CssClass="left"></asp:Label>
                                <span class="right"> 
                                    <a id="uiSearchButton" runat="server" visible="false" onclick="document.getElementById('uiFilterSearch').click();"  href="#" class="Button Reload left"><span></span></a>
                                    <a id="uiFilterResetButton" runat="server" visible="false" href="#" class="Button DeleteFilter left" onclick="document.getElementById('uiFilterReset').click();" ><span></span></a>
                                    <a id="uiSaveFilterHeader" runat="server" visible="false" href="#" class="Button AddFilter left" onclick="if (SaveFilter()) document.getElementById('uiFilterSave').click();"><span></span></a> 
                                    <span id="uiPredefinedFilterHeader" runat="server" visible="false" class="Filter left">
                                        <span class="FilterInner">
                                            <asp:Label ID="uiOpenPredefinedFilterCaption" runat="server"></asp:Label>
                                         </span>
                                        <ul runat="server" id="uiDropDown">
                                            <li>Filter 1 <span class="right"><a href="#" class="Button Add left"><span>Add</span></a> <a
                                                class="Button Delete left" href="#" ><span>Delete</span></a> </span></li>                        
                                        </ul>
                                    </span>
                                </span>
                            </h3>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="table-border-grey" style="text-align: left">
                    <table class="font-bold-grey" >
                        <tr id="uiFilterRow" class="FilterRow"   runat="server">
                            <td colspan="3" id="uiFilterCell" runat="server">
                            </td>
                        </tr>                        
                        <tr id="uiHrRow" runat="server">                            
                        </tr>
                        <tr>
                            <td colspan="3" align="left" id="uiViewCell" runat="server">
                            </td>
                        </tr>
                        <tr>                        
                            <td colspan="3" class="Buttons" id="uiCommandButtonsCell" runat="server">
                            </td>                            
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <uc2:FormFooter ID="FormFooter1" runat="server" />
                </td>
            </tr>
            <tr class="hidden">
                <td>
                    <input type="hidden" id="uiFilterName" runat="server" />
                    <input type="hidden" id="uiFilterDisplayStyle" runat="server" />
                    <input type="button" id="uiFilterSearch" runat="server" onserverclick="uiFilterSearch_ServerClick" />
                    <input type="button" id="uiFilterReset" runat="server" onserverclick="uiFilterReset_ServerClick" />
                    <input type="button" id="uiFilterSave" runat="server" onserverclick="uiFilterSave_ServerClick" />
                    <input type="hidden" id="uiFilterSelectedTxt" runat="server" />
                    <input type="button" id="uiFilterSelectedBtn" runat="server" onserverclick="uiFilterSelectedBtn_ServerClick" />
                    <input type="button" id="uiFilterDeleteBtn" runat="server" onserverclick="uiFilterDeleteBtn_ServerClick" />
                    <input type="hidden" id="uiFirstFilterControlId" runat="server" />
                    <asp:UpdatePanel ID="uiDoAsyncPostBackPnl" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:Button ID="uiDoAsyncPostBackBtn" runat="server" />
                        </ContentTemplate>
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="uiDoAsyncPostBackBtn" />
                        </Triggers>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Image ID="uiLegend" runat="server" Visible="false" />
                </td>
            </tr>
        </table>
        <asp:Panel ID="uiCaptions" runat="server" Visible="false">
            <asp:Localize ID="uiFilterAlreadyExistsCaption" runat="server" meta:resourcekey="uiFilterAlreadyExistsCaption"></asp:Localize>
            <asp:Localize ID="uiDeleteFilterTooltipCaption" runat="server" meta:resourcekey="uiDeleteFilterTooltipCaption"></asp:Localize>
            <asp:Localize ID="uiViewReportTooltipCaption" runat="server" meta:resourcekey="uiViewReportTooltipCaption"></asp:Localize>
            <asp:Localize ID="uiOpenOptionsTooltipCaption" runat="server" meta:resourcekey="uiOpenOptionsTooltipCaption"></asp:Localize>
            <asp:Localize ID="uiTypeFilterName" runat="server" meta:resourcekey="uiTypeFilterName"></asp:Localize>
            <asp:Localize ID="uiDefaultFilterName" runat="server" meta:resourcekey="uiDefaultFilterName"></asp:Localize>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
